// import { message } from 'antd';
import { postData } from './index'

export default {
    editPassword:(data, callback)=>{ //修改密码       
        return postData(process.env.Text[3]+'/center/sys/user/resetUserPasswd',data).then((res) => {            
            if(res){
                callback(res);
            }
        })
    },
    logOut:(data, callback)=>{ //退出登录       
        return postData(process.env.Text[3]+'/center/sys/logout?module=market',data).then((res) => {            
            if(res){
                callback(res);
            }
        })
    },
    getSysInfo:function (data,callback){   // 获取系统信息
        return postData(process.env.Text[1]+'/saascontrol/company/tenant/getTenantInfo',{}).then( (res) =>{
            if(res){
                callback(res)
            }
        })
    },
    getModules:async function (data,callback){   // 获取系统模块
        return postData(process.env.Text[3]+'/center/hjxSys/getModules',{}).then( (res) =>{
            if(res){
                callback(res)
                return res
            }
        })
    },
}
